.voice {
    position: relative;
    display: block;
    width: 120px;
    height: 30px;
    -moz-border-radius:    10px;
    -webkit-border-radius: 10px;
    border-radius:         10px;
}
.voice:before {
    content:"";
    position: absolute;
    top: 10px;
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}
.voice.left {
    background-color: #eee;
}
.voice.left:before {
    right: 100%;
    border-right: 10px solid #eee;
}
.voice.right {
    text-align: right;
    background-color: #98ef4c;
}
.voice.right:before {
    left: 100%;
    border-left: 10px solid #98ef4c;
}
.voice .voice-wrap {
    display: inline-block;
    height: 30px;
    line-height: 25px;
    width: 100%;
}
.voice .small,
.voice .middle,
.voice .large {
    border-radius: 50%;
    box-sizing: border-box;
    vertical-align: middle;
    display: inline-block;
    border-radius: 50%;
}
.voice.left .small,
.voice.left .middle,
.voice.left .large {
    border: 1px solid #3d3d3d;
    border-top-color: transparent;
    border-left-color: transparent;
    border-bottom-color: transparent;
}
.voice.right .small,
.voice.right .middle,
.voice.right .large {
    border: 1px solid #fff;
    border-top-color: transparent;
    border-right-color: transparent;
    border-bottom-color: transparent;
}
.voice .small{
    width: 5px;
    height: 5px;
}
.voice.left .small {
    margin-left: 5px;
}
.voice.right .small {
    margin-right: 5px;
}
@-moz-document url-prefix() {
    .voice.right .small {
        margin-right: -8px;
    }
}
.voice .middle {
    width: 12px;
    height: 10px;
    animation: show2 3s ease-in-out infinite;
    opacity: 1;
}
.voice.left .middle {
    margin-left: -10px;
}
.voice.right .middle {
    margin-right: -10px;
}
.voice .large{
    width: 18px;
    height: 15px;
    animation: show3 3s ease-in-out infinite;
    opacity: 1;
}
.voice.left .large {
    margin-left: -15px;
}
.voice.right .large {
    margin-right: -15px;
}
@keyframes show2 {
    0% { opacity: 0;}
    30% { opacity: 1;}
    100% { opacity: 0;}
}
@keyframes show3 {
    0% { opacity: 0;}
    60% { opacity: 1;}
    100% { opacity: 0;}
}
.voice .middle.stop,
.voice .large.stop{
    animation-name: none;
    -webkit-animation-name: none;
    -moz-animation-name: none;
    -ms-animation-name: none;
}
